import request from "@/utils/request";

// 查询列表
export function listComment(query) {
  return request({
    url: "/api/comment/list",
    method: "get",
    params: query,
  });
}

// 新增
export function addComment(data) {
  return request({
    url: "/api/comment/add",
    method: "post",
    data: data,
  });
}

// 删除
export function deleteComment(data) {
  return request({
    url: "/api/comment/del",
    method: "post",
    data: data,
  });
}
